package com.zifan.sever.service;

import com.zifan.sever.bean.MenuRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zifan.sever.utils.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zifan
 * @since 2021-04-10
 */
public interface IMenuRoleService extends IService<MenuRole> {

    /**
     * 查出该角色id对应的菜单列表
     * @param rid
     * @return
     */
    List<Integer> getMenusIdByRoleId(Integer rid);

    /**
     * 更新角色的菜单列表
     * @param rid
     * @param mids
     * @return
     */
    RespBean updateRolesMenu(Integer rid, Integer[] mids);
}
